import Vue from 'vue';
import {
  Breadcrumb, Form, FormModel, Input, Icon, Button, message, Spin, Table,
} from 'ant-design-vue';

import router from './router/router';
import store from './store/index';
import App from './App.vue';
import xhrMock from '../mock/index';
import './permission';
import './icons/index';

Vue.use(Breadcrumb);
Vue.use(Form);
Vue.use(FormModel);
Vue.use(Input);
Vue.use(Icon);
Vue.use(Button);
Vue.use(Spin);
Vue.use(Table);
Vue.prototype.$message = message;
xhrMock();

window.app = new Vue({
  render: (h) => h(App),
  router,
  store,
}).$mount('#app');
